import {
  createRouter,
  createWebHashHistory,
  type RouteRecordRaw,
} from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'page_user',
    component: () => import('../components/user/user.vue'),
  },
  {
    path: '/drag',
    name: 'drag',
    component: () =>
      import(
        '../components/global_comps/uni_comps/quick_func_float/quick_func_float.vue'
      ),
  },
  {
    path: '/upload',
    name: 'upload',
    component: () => import('../components/upload/upload.vue'),
  },
  {
    path: '/unit',
    name: 'unit',
    component: () => import('../components/unit/unit.vue'),
  },
  {
    path: '/sign',
    name: 'sign',
    component: () => import('../components/user/page/user_sign/user_sign.vue'),
  },

  {
    path: '/login',
    name: 'login',
    component: () =>
      import('../components/user/page/user_login/user_login.vue'),
  },
] as RouteRecordRaw[];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
